Hello,
For instance, when the user selects 2 modules (in a previous window) that cannot be identified, it will pop up dialog 1 asking for a selection for the first one (clicking accept then runs the comparison function), and then the dialog 2 asking for the selection for the other module.
void fnOther(DB) { the problem is, I've tried using a while loop, but the action of showing the dialog box breaks the while loop. Are there any suggestions to get around this? i tried a different method which checked to see if any other "not found modules" were identified with the intention of just running the fnOther function again, however the placement of all the functions in the script places the fnOther function underneath where it would need to be called.
I appreciate any help!! fj91 - Sun Mar 06 21:06:43 EST 2016 |
Re: Multiple Dialogs
For "show" the DXL help mentions: "Displays the dialog box and suspends execution of the DXL program. Execution only continues in callbacks from the buttons on the dialog box. No code should appear after a
But you could read through the "block" entry in DXL Help, as for this there is a mention: "Unlike I have not gone through your code / problem but I think the block / release dialog box functions would work in a while loop. |
Re: Multiple Dialogs You need to realize, that a dialog in DXL run with "show" should be a single DXL program. So I would suggest to you having the parent start comparison dialogs for each module using "eval_" ... This will make them independent from each other and might save you headache with global variables shared between both dialogs, etc. Having one DXL program launch different dialog boxes with "show" might not work well ... If you still want to try it you need to know how "show" works. As you can read in the DXL manual, show will STOP the DXL execution and enter the window loop ... That means after the first "show" inside the loop the program will not continue anymore. If you therefore want to have multiple dialogs shown by the same program, you need to realize all dialogs and only show the last one. Still when I remember correctly this will bring problems, since all but the last dialog might not work correctly, since show/block was never called on them. Therefore you should go with "eval_" ... regards, Mathias |